package com.x_memteor.base_master.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/3/14 0014 上午 10:18
 * @company:
 * @email: lx802315@163.com
 */
public class UpWeightBean implements Parcelable {

   /* {
        "state": 1,
            "msg": "",
            "data": {
        "wechat_name": "axsdefault", //公众号名称
                "wechat_qrcode": "http://xxxxx.jpg", //二维码图片
                "wechat_mode": "code",
                "check_code": "5364", //验证码
                "id": "6" //本次记录的ID,要保存下，后面需要用
    }
    }*/
    /**
     * state : 1
     * msg :
     * data : {"wechat_name":"axsdefault","wechat_qrcode":"http://xxxxx.jpg","wechat_mode":"code","check_code":"5364","id":"6"}
     */

    private int state;
    private String msg;
    private DataBean data;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * wechat_name : axsdefault
         * wechat_qrcode : http://xxxxx.jpg
         * wechat_mode : code
         * check_code : 5364
         * id : 6
         */

        private String wechat_name;
        private String wechat_qrcode;
        private String wechat_mode;
        private String check_code;
        private String id;

        public String getWechat_name() {
            return wechat_name;
        }

        public void setWechat_name(String wechat_name) {
            this.wechat_name = wechat_name;
        }

        public String getWechat_qrcode() {
            return wechat_qrcode;
        }

        public void setWechat_qrcode(String wechat_qrcode) {
            this.wechat_qrcode = wechat_qrcode;
        }

        public String getWechat_mode() {
            return wechat_mode;
        }

        public void setWechat_mode(String wechat_mode) {
            this.wechat_mode = wechat_mode;
        }

        public String getCheck_code() {
            return check_code;
        }

        public void setCheck_code(String check_code) {
            this.check_code = check_code;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.wechat_name);
            dest.writeString(this.wechat_qrcode);
            dest.writeString(this.wechat_mode);
            dest.writeString(this.check_code);
            dest.writeString(this.id);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.wechat_name = in.readString();
            this.wechat_qrcode = in.readString();
            this.wechat_mode = in.readString();
            this.check_code = in.readString();
            this.id = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.state);
        dest.writeString(this.msg);
        dest.writeParcelable(this.data, flags);
    }

    public UpWeightBean() {
    }

    protected UpWeightBean(Parcel in) {
        this.state = in.readInt();
        this.msg = in.readString();
        this.data = in.readParcelable(DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<UpWeightBean> CREATOR = new Parcelable.Creator<UpWeightBean>() {
        @Override
        public UpWeightBean createFromParcel(Parcel source) {
            return new UpWeightBean(source);
        }

        @Override
        public UpWeightBean[] newArray(int size) {
            return new UpWeightBean[size];
        }
    };
}
